package com.zofer.study.strategy.activity;

/**
 * @description 策略模式
 * 给不同的会员打不同的折扣
 * 铜牌会员打9折,金牌会员打7折,钻石会员打5折
 * @date: 2020/10/14 18:41
 */
public class Main {
    public static void main(String[] args) {
        double originalPrice = 1000;
        Price price = new Price(new BronzeMemberStrategy());
        double discountPrice = price.getPrice(originalPrice);
        System.out.println("原价:"+originalPrice+",折后价格："+discountPrice);
    }
}
